package com.qdlc.p2p.biz.adapted;

import javax.servlet.http.HttpServletRequest;

import com.qdlc.p2p.common.core.ReturnResult;
import com.qdlc.p2p.dal.dto.User;

/**
 * 功能描述: 提现接口 
 * @author linya
 * @date 2016-4-22
 */
public interface AdaptedWithdrawService extends AdaptedPayService{

    /**
     * [提取] 跳转到页面信息
     * @param user
     * @return
     * @author linya
     */
    ReturnResult gotoNewCash(User user);
	
    /**
     * [提取] 检测提取前置条件
     * @param user   当前用户
     * @param money  提取金额
     * @param bankNo 提取银行卡
     * @param payPwd 交易密码
     * @return
     * @author linya
     */
    ReturnResult doCashPreCondition(User user, double money, String bankNo, String payPwd);

    /**
     * [提取] 执行提取操作
     * @param user
     * @param bankNo
     * @param money
     * @param ip
     * @return
     * @author linya
     */
    ReturnResult doWithdraw(User user, String bankNo, double money, String ip);
    
    
    /**
     * [提取] 回调通知
     * @param request
     * @return
     * @author linya
     */
    ReturnResult notifying(HttpServletRequest request);
}
